//
// detrendIBI_priors_initialize.cpp
//
// Code generation for function 'detrendIBI_priors_initialize'
//

// Include files
#include "detrendIBI_priors_initialize.h"
#include "interface/_coder_detrendIBI_priors_mex.h"
#include "detrendIBI_priors_data.h"
#include "rt_nonfinite.h"

// Function Declarations
static void detrendIBI_priors_once();

// Function Definitions
static void detrendIBI_priors_once()
{
  mex_InitInfAndNan();
  // Allocate instance data
  covrtAllocateInstanceData(&emlrtCoverageInstance);
  // Initialize Coverage Information
  covrtScriptInit(
      &emlrtCoverageInstance,
      "E:\\MCode\\matlab_code\\HRVAS_v1.0.0\\chaifen\\detrendIBI_priors.m", 0U,
      1U, 2U, 1U, 0U, 0U, 0U, 0U, 0U, 0U, 0U);
  // Initialize Function Information
  covrtFcnInit(&emlrtCoverageInstance, 0U, 0U, "detrendIBI_priors", 0, -1,
               1254);
  // Initialize Basic Block Information
  covrtBasicBlockInit(&emlrtCoverageInstance, 0U, 1U, 1190, -1, 1222);
  covrtBasicBlockInit(&emlrtCoverageInstance, 0U, 0U, 89, -1, 795);
  // Initialize If Information
  covrtIfInit(&emlrtCoverageInstance, 0U, 0U, 1163, 1180, -1, 1248);
  // Initialize MCDC Information
  // Initialize For Information
  // Initialize While Information
  // Initialize Switch Information
  // Start callback for coverage engine
  covrtScriptStart(&emlrtCoverageInstance, 0U);
}

void detrendIBI_priors_initialize()
{
  static const volatile char_T *emlrtBreakCheckR2012bFlagVar{nullptr};
  emlrtStack st{
      nullptr, // site
      nullptr, // tls
      nullptr  // prev
  };
  mexFunctionCreateRootTLS();
  emlrtBreakCheckR2012bFlagVar = emlrtGetBreakCheckFlagAddressR2012b();
  st.tls = emlrtRootTLSGlobal;
  emlrtClearAllocCountR2012b(&st, false, 0U, nullptr);
  emlrtEnterRtStackR2012b(&st);
  if (emlrtFirstTimeR2012b(emlrtRootTLSGlobal)) {
    detrendIBI_priors_once();
  }
}

// End of code generation (detrendIBI_priors_initialize.cpp)
